package com.applet.user.mapper;

import com.applet.entity.User;
import org.apache.ibatis.annotations.Mapper;

/**
 * 微信的用户 mapper
 */
@Mapper
public interface UserMapper {


    /**
     * 根据openid查询用户信息
     */
    User selectUserByOpenId(String openid);


    /**
     * C端 添加新用户
     */
    Integer insert(User newUser);


    /**
     * C端 根据id查询用户
     */
    User getById(Long userId);
}
